package Extends.ExtendsText001;

/**
 * ClassName:Animal
 * Package:Extends.ExtendsText001
 * Description:
 *
 * @Author:ZhangXin
 * @Create2023/1/19-16:07
 * @Version:v1.0
 */
public class Animal {
    //权限修饰符：private(子类就无法访问)
    //注意：
    //子类只能访问父类中的非私有成员
    public void eat(){
        System.out.println("吃东西");
    }
    public void drink(){
        System.out.println("喝水");
    }

}
